﻿
using FreeSql.DataAnnotations;

namespace Demo.GIS.GadgetServices.DBModels
{
    [Table(Name = "DemoSearchInfo")]
    public class DemoSearchInfo
    {
        /// <summary>
        /// 检索ID
        /// </summary>
        [Column(IsPrimary = true)]
        public long DSIID { get; set; } = LuanNiao.Core.IDGen.GetInstance().NextId();
        /// <summary>
        /// 链接的物件ID
        /// </summary>
        public long DGIID { get; set; }

        /// <summary>
        /// 关联的物件对象
        /// </summary>
        [Navigate(nameof(DGIID))]
        public DemoGadgetInfo GadgetInfo { get; set; } = new();
    }
}
